C1.LiveLinq Namespace > LiveViewExtensions Class > LiveMax Method : LiveMax(View<Nullable<Decimal>>) Method |
'Declaration
Public Overloads Shared Function LiveMax( _ ByVal source As View(Of Nullable(Of Decimal)) _ ) As AggregationView(Of Nullable(Of Decimal),Nullable(Of Decimal))
public static AggregationView<Nullable<decimal>,Nullable<decimal>> LiveMax( View<Nullable<decimal>> source )
If the source is empty or contains only nulls, the maximum value is null.
It is possible to use standard LINQ query operator Max instead of LiveMax. Both are "live" in the sense that they are recomputed automatically when any change occurs in the source. The difference is that Max will every time loop through the entire source collection and aggregate it from scratch, whereas LiveMax will use a more performant algorithm, will maintain its value incrementally, processing only those source items that actually changed.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2